home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / fp2_x102.zip / FP2_XLIB.DOC < prev    next >
Text File  |  1991-08-16  |  5KB  |  121 lines

  1. FP2_XLIB.PRG    release version 1.02
  2.                 Date:   August 18, 1991
  3.  
  4.                 Author: Edward M. Rauh
  5.                         Gamboge International Inc.
  6.                         300 Long Beach Boulevard
  7.                         Stratford, CT 06497
  8.                         Fax: 203/386-9333
  9.  
  10. FoxPro 2.0 specific UDF library - general function library 1 for LAN
  11. environments.  The key to making these functions available is to activate
  12. the programs by the following two lines of code:
  13.  
  14.         SET PROCEDURE TO FP2_XLIB
  15.         DO STD_INIT
  16.  
  17. In order to clean up after itself, replace any uses of the QUIT verb with:
  18.  
  19.         DO PRG_EXIT WITH ''
  20.  
  21. Included routines:
  22.  
  23. STD_INIT                A standard initialization call that sets up a
  24.                         working environment and enhanced error-recovery
  25.                         handlers.
  26.  
  27. STD_SETS                A routine to restore the standard runtime environment,
  28.                         used by STD_INIT.  It will restore the ON ERROR 
  29.                         handler if it was previously invoked by STD_INIT
  30.  
  31. POP_HELP                Routine used by STD_INIT to Pop-up FoxPro 2 style
  32.                         help if an appropriate help file is active
  33.  
  34. POP_CALC                Routine used by STD_INIT to Pop-up the FoxPro
  35.                         calculator desktop accessory
  36.  
  37. CALC_KBD                Routine used by STD_INIT to insert the content of
  38.                         the calculator into a FxoPro edit field or variable
  39.  
  40. PRG_EXIT                An intended replacement for QUIT that reverses the
  41.                         effects of STD_INIT setup and cleans up before
  42.                         quitting.
  43.  
  44. FILLOCK()               A recovering file-locking routine
  45.  
  46. RECLOCK()               A recovering record-locking routine
  47.  
  48. ERR_HAND                The enhanced error handling routine
  49.  
  50. INSTRUCT                UDF to place a line of text on line 24 of the screen
  51.  
  52. APPROVED()              UDF to get the answer to a Yes/No question
  53.  
  54. ASKCHAR()               UDF to get a one-character reply matching a set
  55.                         of allowed responses
  56.  
  57. APPBLANK()              A recovering APPEND BLANK that minimizes the DBF
  58.                         header lock time and allows for failure
  59.  
  60. USE_DB()                UDF for recoverable USE statement execution
  61.  
  62. SAVE_ENV()              UDF to save partial runtime environment as a string
  63.  
  64. REST_ENV                UDF to restore runtime environment from a SAVE_ENV()
  65.                         string
  66.  
  67. SEL_PDEV                UDF for popup printer control
  68.  
  69. SET_PDEV                UDF used by SEL_PDEV to set print devices
  70.  
  71. MNG_FORM                UDF used by SEL_PDEV to control form alignment, etc.
  72.  
  73. NET_CTRL                UDF to run various Novell Print Control Utilities
  74.  
  75. PDEV_DSP                UDF that displays the current print device status
  76.  
  77. PICKONE()               UDF to select a record from a popup scrolling box.
  78.                         Reentrant, allows for execution of procedures on
  79.                         selection, key searches, more.  Lots of code to
  80.                         read, even semi-well documented!
  81.  
  82. PICKIT                  Procedures used by PICKONE()
  83. HIDISP
  84. DISP
  85. DISPRECS
  86. PSB_ERR
  87.  
  88. VAL_CRCD()              Credit card validation UDF using modulo-10 calculation
  89.  
  90. VAL_ISBN()              ISBN validation using modulo-11 calculation
  91.  
  92. CHG_DIR                 Change directories on a non-default drive, optionally
  93.                         seting the new path to the default path.  Does not
  94.                         use RUN/!, so it runs no matter how tight memory is.
  95.  
  96. ISBN_CKD()              Returns the proper checkdigit to convert a 9-digit
  97.                         book number to an ISBN.
  98.  
  99. The job server routines will be released in a separate library that will be
  100. dependant on the use of FP2_XLIB routines.  In all likelyhood, it will be
  101. released as a commercial product along with a set of Novell/NetBIOS calls
  102. implemented through the C API.
  103.  
  104. This code is released in the public domain.  You are free to modify the code
  105. as you see fit.  If you modify it and it breaks, you own both halves.  If
  106. bugs are reported, I will attempt to correct them;  I assume no responsibility
  107. for your use of the code.  It is released as source code specifically so that
  108. you can make it do what you want it to;  if you come up with a better way to
  109. do things, let me know and I may incorporate your changes into the next
  110. revision.  Better yet, release your own version, IN SOURCE CODE FORMAT!
  111.  
  112. Ed Rauh
  113.  
  114. PS    I don't list a phone number - if you have reports/requests, send them
  115.       to me by MAIL, or on the FidoNet DBASE conference, or the ILink
  116.       Database conference, or by fax.
  117.  
  118. PPS   Anyone who wants to write a documentation file for this stuff, feel
  119.       free to do so.  You'll get just as much reward as I did for writing
  120.       the routines in the first place...
  121.